package com.chaopei.day39.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author Corday 天涯
 * @Date 2022/4/23 21:20
 * 1.一对一关联查询
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Student {
    private int sid;
    private String name;
    private String gender;
    private String tel;
//    身份卡号,关联了外部对象，如何查询
    private Card card;
}
